package Chapter08;

/**
 * Created by a on 2017/6/15.
 */
public class Test176 {
    public static void main(String[] args) {
        for (Size size : Size.values()){
            System.out.println(size+"的序数是："+size.ordinal());
            System.out.println(size.compareTo(Size.SMALL)+" ");
            System.out.println(size.equals(Size.SMALL)+" ");
            System.out.println(size == Size.SMALL);
            System.out.println(size.name());
            System.out.println("********************");
        }
    }

}

enum Size {
    SMALL,MEDIUM,LARGE
}
